<h1>Docker port 命令</h1>
<p><strong>docker port :</strong>列出指定的容器的端口映射，或者查找将PRIVATE_PORT NAT到面向公众的端口。</p>
<h3>语法</h3>
<pre><code class="language-Docker">docker port [OPTIONS] CONTAINER [PRIVATE_PORT[/PROTO]]</code></pre>
<h3>实例</h3>
<p>查看容器mynginx的端口映射情况。</p>
<pre>runoob@runoob:~$ docker port mymysql

3306/tcp -&gt; 0.0.0.0:3306

